﻿using BLL.Permission;
using Model.Permission;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Function;

namespace BLL.Utility
{
    public class Context
    {
        /// <summary>
        /// 当前登录用户
        /// </summary>
        public static UserEntity User { get { return GetPermissionUserInfo(); } set { User = value; } }

        /// <summary>
        /// 得到当前登录用户的信息
        /// </summary>
        /// <returns></returns>
        static UserEntity GetPermissionUserInfo()
        {
            UserEntity user = new UserBLL().GetModel(Method.CurrentUserID);
            return user;
        }
    }
}
